<!-- THE MAIN CONTENT CLASS-->
<div class='mainContainer home'> <!-- Main div for the contain, behaves like a table-->
	<div><!-- Direct child of mainContainer, behaves like a table cell-->
		<h2 class='differentAlign'>Download <span class='differentHeading'>Catalog</span></h2>

    <?php foreach($catalogs as $catalog){ ?>
		<div class='catalog' style="width:98%">
			<p class='catalogTitle'>
				<a href="<?php echo bu("catalogs/download?id=".$catalog->id); ?>"><?php echo $catalog->title; ?></a><br />
				<span class='date'><?php echo Helpers::customDate($catalog->created_at); ?></span>
			</p>
			<p><?php echo substr($catalog->description, 0, 140); ?></p>
		</div>
    <?php } ?>

    <div class="pagination">
      <?php
        $this->widget('CLinkPager',array(
          'pages'=>$pages,
          "cssFile" => false,
          "header" => "",
        ));
      ?>
    </div>

		<!--PAGINATION-->
		<div class='spacer'>&nbsp;</div>
	</div>
</div>

<div class='spacer'>&nbsp;</div>